import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'purchasingCenter-control',
  templateUrl: './purchasingCenter-control.component.html',
  styleUrls: ['./purchasingCenter-control.component.scss'],
})
export class PurchasingCenterControlComponent implements OnInit {

  // 采购中心总控
  department: any = 'ECC008'; // 部门枚举

  config: any = [
    {
      title: '价格预警统计',
      api: 'scm.warning.priceWarningService.qryGroupSumPriceWarning',
      drawer: {
        'title': '价格预警统计详情',
        'action': 'drawer',
        'formId':'scm.warning.priceWarning',
        'width':'40vw',
      }
    },
    {
      title: '外协',
      api: 'fn.control.obtainOutAssist',
      drawer: {
        'title': '外协详情',
        'action': 'drawer',
        'formId':'control.outAssist.detail',
        'width':'40vw',
      }
    },
    {
      title: '合同管理',
      api: 'scm.warning.contractWarningService.qryGroupSumPriceWarning',
      drawer: {
        'title': '合同管理详情',
        'action': 'drawer',
        'formId':'scm.warning.contractWarningService.query30EffectiveContract',
        'width':'40vw',
      }
    },
    {
      title: '供应商票点到期预警',
      api: 'cm.supplier.getSupplierTicketWarningCount',
      drawer: {
        'title': '合同管理详情',
        'action': 'drawer',
        'formId':'data.formId',
        'width':'40vw',
      }
    }
  ]

  constructor() {

  }

  ngOnInit() {

  }

}

